const dpServiceProviderMode = (request) => {
	return {
		// 列表
		dpServiceOrgHome_page(query = {}) {
			return request('/bussiness/dpServiceOrgHome/page', {
				method: 'post',
				data: query,
			})
		},
		// 采集
		dpServiceOrgHome_gather(query = {}) {
			return request('/bussiness/dpServiceOrgHome/gather', {
				method: 'post',
				data: query,
			})
		},
		// 模板下载
		dpServiceOrgHome_downloadTemplate(query = {}) {
			return request('/bussiness/dpServiceOrgHome/downloadTemplate', {
				method: 'post',
				responseType: 'blob',
				data: query,
			})
		},
		// 修改数据
		dpServiceOrgHome_edit(query = {}) {
			return request('/bussiness/dpServiceOrgHome/edit', {
				method: 'post',
				data: query,
			})
		},
		// 导出数据
		dpServiceOrgHome_export(query = {}) {
			return request('/bussiness/dpServiceOrgHome/export', {
				method: 'post',
				data: query,
			})
		},
		// 数据信息导入
		dpServiceOrgHome_import(query = {}, onUploadProgress) {
			return request('/bussiness/dpServiceOrgHome/import', {
				method: 'post',
				headers: {
					'Content-Type': 'multipart/form-data; boundary=something',
				},
				onUploadProgress,
				data: query,
			})
		},
		// 通过id查询
		dpServiceOrgHome_detail(id) {
			return request(`/bussiness/dpServiceOrgHome/${id}`, {
				method: 'get',
			})
		},
		// 删除
		dpServiceOrgHome_del(ids) {
			return request(`/bussiness/dpServiceOrgHome/del`, {
				method: 'post',
				data: {
					batchesDel: ids,
				},
			})
		},
		// 全字段查询
		view_dpServiceOrgHome_search(query = {}) {
			return request('/bussiness/dpServiceOrgHome/search', {
				method: 'post',
				data: query,
			})
		},
	}
}
export default ({ request }: any) => ({
	...dpServiceProviderMode(request),
})
